package com.example.select3;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.BaseAdapter;
import android.widget.Spinner;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


        Spinner spinner = findViewById(R.id.select3);

        BaseAdapter adapter = new PlantSelectAdapter(this,Plant.getDefaultPlants());
        spinner.setAdapter(adapter);


    }
}